<include file="../Public/header.html" />
<link href="__PUBLIC__/Css/public.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Css/reglogin.css" rel="stylesheet" type="text/css" />
<script>
$(function(){
	$('#loginForm').checkForm();
});
</script>

<!--表单验证-->
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validator.reg.js"></script>

<div id="mainWrapper">
		<div id="main">
		<div style="width: auto; height: auto;margin:40px 0px 80px 0px; " class="do_box">
		    <dl class="do_top">
		    	<dt><img height="17" width="72" src="__PUBLIC__/Images/global/login_title.gif"></dt>
		        <dd></dd>
		        <div class="clear"></div>
		    </dl>
		    
				<php>if($_GET['t']=='unactive'){</php>
				<div class="k_desc_div">
					<div class="k_icon k_bulb"></div>
					<strong>该账户尚未激活</strong>
					<div>到注册确认邮件中激活账户，或者，
						<a href="{:U('Index://Public/resendEmail',array('email'=>$email,'uid'=>$uid))}">
							重发确认邮件</a>
					</div>
				</div>
				<!-- 未激活处理 -->
				<php>}</php>
				<php>
				if($_GET["t"]==1){
				</php>
				<div class="LoginBox_msg"><font color="red">email或密码错误!</font></div>
				<php>}elseif($_GET["t"]==2){</php>
				<php>}elseif( $_GET['t'] == 3 ){</php>
				<div class="LoginBox_msg"><font color="red">验证码错误!</font></div>
				<php>}</php>
	
		    
		    <div class="clear"></div>
		    <form action="{:U('Index://Public/doLogin')}" method="post" id="loginForm">
		    <table cellspacing="0" cellpadding="0" border="0" align="center" width="900" class="do_list">
		      <tbody><tr>
		        <td height="50" align="right" valign="middle"><span class="reg_item">Email:</span></td>
		        <td width="314" valign="middle">
		        <div class="mailline">
		            <input type="text" class="do_input uemail b_input" value="" 
            					name="email" require="true" datatype="limit|email" min="1"
            					msg="不能为空|格式错误"/>
		        </div>
		        </td>
		        <td align="left" width="155" valign="middle">
		        	<div id="success_email"  style="display:none;"> <span class="ico_cue_ok"></span> </div>
		          <div class="error_email" style="position: relative;display:none;"> <span class="ico_cue_no"></span><span id="error_email"></span> </div>
		        </td>
		        <td width="300" valign="top" rowspan="5">
		        <ul class="side_zone">
		        <li>还没注册{$ts['site']['site_name']}成为用户？</li>
		        <li> <a href="{:U('Index://Public/register')}" class="sidebtn" tabindex='-1'>10秒快速注册</a></li>   
		        <li><a href="{:U('agent://Public/login')}" class="sidebtn" tabindex='-1'  style="display:none">联盟会员登录</a></li>
				<li><a href="{:U('agent://Public/register')}" class="sidebtn" tabindex='-1'  style="display:none">注册联盟会员</a></li>      
		        </ul>   
		        </td>
		      </tr>
		      <tr>
		        <td height="50" align="right" valign="middle"><span class="reg_item">密码:</span></td>
		        <td valign="middle">
		        	<input type="password" class="do_input psd_input b_input" 
		        					name="password" id="password" require="true" value="" 
		        					datatype="limit"  min="6" max="16" msg="长度6-16"/>       
		        </td>
		        <td align="left" valign="middle">
		        	<div id="success_password"  style="display:none;"> <span class="ico_cue_ok"></span> </div>
		          <div class="error_password" style="position: relative;display:none;"> <span class="ico_cue_no"></span> <span id="error_password"></span> </div>
		        </td>
		      </tr>
		      <php> $verify_allow = unserialize($site_opts["verify"]);
            $login_verify_allow = $verify_allow['login']; </php>
          <eq name="register_verify_on" value="1">
		      <tr>
		        <td height="50" align="right" valign="middle"><span class="reg_item">验证码:</span></td>
		        <td valign="middle">
		       		<span class="yzm_box">
		       			<input type="text" class="do_input b_input yzm_input" 
		        		name="verify" require="true" value="" datatype="require"  
		        		msg="输入验证码"/>
		       		</span>
		       		<img onclick="changeverify()" 
		       		style="cursor: pointer;vertical-align: middle;" id="verifyimg" alt="看不清？请点击！" 
		       		src="{:U('Index://Public/verify')}">
		       		<a class="forget" href="javascript:void(0);" onclick="changeverify()" 
		       			style="cursor: pointer;">看不清？换一张</a>
		        </td>
		        <td align="left" valign="middle">
		        	<div id="success_verify"  style="display:none;"> <span class="ico_cue_ok"></span> </div>
		       		<div class="r error_verify" style="position: relative;display:none;"> <span class="ico_cue_no"></span> <span id="error_verify"></span> </div>
		        </td>
		      </tr>
		      </eq>
		      
		      <tr>
		        <td height="25" align="right" valign="middle">&nbsp;</td>
		        <td valign="middle"><input type="checkbox" id="remember" class="autologin" name="remember" value="1" checked="checked">
		        <b><label for="remember">下次自动登录</label></b></td>
		        <td align="left" valign="middle"><span></span></td>
		      </tr>
		      <tr>
		        <td height="60" align="right" valign="middle">&nbsp;</td>
		        <td valign="middle" style="padding-bottom: 15px;" colspan="2">
		        	<input type="submit" class="submit_btn reglogin_btn" value="登&nbsp;录" name="input2">
		          <a target="_blank" href="{:U('Index://Public/sendPassword')}" class="forget">忘记密码？</a><span></span></td>
		        </tr>
		        
		      <tr>
		        <td height="60" align="right" valign="middle">&nbsp;</td>
		        <td valign="middle" colspan="2">
		          <table cellspacing="0" cellpadding="0" border="0" width="300">
		          <tbody><tr>
		            <td height="30" colspan="2"><b>使用合作网站账号登录{$ts['site']['site_name']}：</b></td>
		            </tr>
		          <tr>
		          
		            <td>
		            	<php>if($sinaurl) {</php>
		            	<a href="{$sinaurl}">
		            	<img src="/Public/Images/global/sina_login_logo.png"></a>
		            	<php>}</php>
		            </td>
		            <td>
		            	<php>if($doubanurl) {</php>
		            	<a href="{$doubanurl}">
		            	<img src="/Public/Images/global/doubao_login_logo.png"></a>
		            	<php>}</php>
		            </td>
		         </tr>
		        </tbody></table>
		          </td>
		        </tr>
		    </tbody></table>
		    <input type="hidden" value="act_login" name="act">
		    <input type="hidden" id="back_act" value="" name="back_act">
		    </form><br><br>
		</div>
		
		    <form method="post" action="user_combine_logreg.php" name="uniteloginForm" id="uniteloginForm">
		      <input type="hidden" id="ulapitype" value="" name="ulapitype">
		      <input type="hidden" id="ulid" value="" name="ulid">
		      <input type="hidden" id="ulcode" value="" name="ulcode">
		      <input type="hidden" id="ulname" value="" name="ulname">
		      <input type="hidden" id="ulbackact" value="" name="ulbackact">
		    </form>  
		  
		  
		    
		  
		
		    <div id="clear"></div>
		
		</div>

</div>
<include file="../Public/footer.html" />